std::sin

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       sin( float arg );

double      sin( double arg );

long double sin( long double arg );

Computes sine of arg

Parameters

arg - floating point value representing angle in radians

Return value

sine of arg in the range [-1.0 ; 1.0].

Domain error occurs if arg is infinite. ​NAN​ is returned in that case.

See also

cos
cosine
(function)
tan
tangent
(function)
asin
arc sine
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages